let mongoose=require('mongoose');

let Schema=mongoose.Schema;

let goodsSchema=new Schema({
    img:{
        type:String,
        required:true
    },
    price:{
        type:Number,
        required:true
    },
    info:{
        type:String,
        required:true
    },
    kind_id:{
        type:Schema.Types.ObjectId,
        required:true
    }
})

module.exports=mongoose.model('goods',goodsSchema);
